/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Command;

/**
 *
 * @author Jenny Patrick
 */
public class ResetServicio implements Comando{
    
    private Servicio servidor;
    
    public ResetServicio(Servicio servidor){
        this.servidor = servidor;
    }
    
    public void execute(){
        servidor.conectar();
        servidor.verificaConexion();
        servidor.guardar();
        servidor.apagado();
        servidor.prender();
        servidor.guardar();
        servidor.cerrarConexion();
    }
}
